package com.ruoyi.project.syl_Sxl.service.impl;

import com.ruoyi.project.syl_Sxl.domain.HisMoney;
import com.ruoyi.project.syl_Sxl.mapper.HisMoneyMapper;
import com.ruoyi.project.syl_Sxl.service.IHisMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HisMoneyServiceImpl implements IHisMoneyService {

    @Autowired
    private HisMoneyMapper hisMoneyMapper;
    @Override
    public List<HisMoney> selectAll(HisMoney hisMoney) {
        return hisMoneyMapper.selectAll(hisMoney);
    }

    @Override
    public int insertMoney(HisMoney hisMoney) {
        return hisMoneyMapper.insertMoney(hisMoney);
    }

    @Override
    public int deleteByIds(Long[] ids) {
        return hisMoneyMapper.deleteByIds(ids);
    }

    @Override
    public int updateMoney(HisMoney hisMoney) {
        return hisMoneyMapper.updateMoney(hisMoney);
    }

    @Override
    public HisMoney selectById(Long orderId) {
        return hisMoneyMapper.selectById(orderId);
    }
}
